function addcard(link, AOR, obj) {
	jQuery.ajax( {
		url : link,
		success : function(data) {
			var calljs='';
			if (AOR == 'true') {
				calljs='addcard("'+data+'","false",this)';
				obj.innerHTML = "Remove Card";
			} else {
				calljs='addcard("'+data+'","true",this)';
				obj.innerHTML = "Save this Card";
			}
			obj.setAttribute("onclick", calljs);
		}
	});
}
function addcardCom(link, AOR, obj) {
	jQuery.ajax( {
		url : link,
		success : function(data) {
			var calljs='';
			if (AOR == 'true') {
				calljs='addcard("'+data+'","false",this)';
				obj.innerHTML = "Remove Card";
			} else {
				calljs='addcard("'+data+'","true",this)';
				obj.innerHTML = "Save this Card";
			}
			obj.setAttribute("onclick", calljs);
		}
	});
}
